package edu.njust.Service.consumer;

import edu.njust.domain.Consumer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ConsumerService {

    //删除消费者
    public boolean deleteById(int id);
    //插入
    public boolean insertAll(Consumer consumer);
    //给修改用的查询
    public	Consumer selectById(int id,String pwd);
    //修改
    public boolean updateById(Consumer consumer);
    //分页模糊查询
    public List<Consumer> pageSelect(String name, int start, int pageSize);
    //分页模糊查询总条数
    public int countSelect(String name);
    //ajax 验证是否存在 此身份证号码
    public boolean selectYZ(String papersNumber);

}
